#include "PropertyWidget.h"

PropertyWidget::PropertyWidget(QWidget *parent, Qt::WindowFlags flags)
    : QDockWidget(tr("Property Editor"), parent, flags)
{
    setMinimumSize(QSize(220, 220));

    mpContents = new QWidget(this);
    setWidget(mpContents);

    mpLayout = new QVBoxLayout(mpContents);
    mpContents->setLayout(mpLayout);
}

PropertyWidget::~PropertyWidget()
{
}

void PropertyWidget::addWidget(QWidget *widget)
{
    mpLayout->addWidget(widget);
}

void PropertyWidget::removeWidget(QWidget *widget)
{
    mpLayout->removeWidget(widget);
}
